package org.vnetcon.blobdb.database.backend.gae.jdo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class QueueEntity {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key tableIDKey;

    @Persistent
    private long creationTime;

    @Persistent
    private int tableId;

    @Persistent
    private int tableDataId;
    
    public QueueEntity(long creationTime, int tableId, int tableDataId){
    	this.creationTime = creationTime;
    	this.tableId = tableId;
    	this.tableDataId = tableDataId;
    }

	public long getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(long creationTime) {
		this.creationTime = creationTime;
	}

	public int getTableId() {
		return tableId;
	}

	public void setTableId(int tableId) {
		this.tableId = tableId;
	}

	public int getTableDataId() {
		return tableDataId;
	}

	public void setTableDataId(int tableDataId) {
		this.tableDataId = tableDataId;
	}
    
    
}
